package com.sh.data.engine.domain.integration.datasource.model.mapper;

import com.sh.data.engine.domain.integration.datasource.model.domain.DataSourceDetailDomain;
import com.sh.data.engine.domain.integration.datasource.model.param.DataSourceHDFSSaveParam;
import com.sh.data.engine.repository.dao.integration.datasource.entity.DataSourceEntity;
import org.mapstruct.Mapper;

/**
 * @author: mengzheng.mhc
 * @date: 2024/6/11 17:02
 */
@Mapper(componentModel = "spring")
public interface HDFSConfigMapper {

    DataSourceEntity.HDFSConfig paramToConfig(DataSourceHDFSSaveParam param);

    DataSourceDetailDomain.HDFSConfig entityToDomain(DataSourceEntity.HDFSConfig config);
}
